import request from "@/libs/request";

const basePath = '/appcloud-builder-api' ;

export const apiUrls = {
	build : basePath + '/template/build/',
  upgrade : basePath + '/template/upgrade/',
  upgradeFile : basePath + '/template/upgradeFile/'
}


//构建
export async function build(params){
	return request( apiUrls.build, {
      method:'POST',
      body:params
  })
}

// 升级
export async function upgrade(params){
	return request( apiUrls.upgrade, {
      method:'POST',
      body:params
  })
}


//获取升级文件
export async function upgradeFile(id){
	return request( apiUrls.upgradeFile + "?sourceTemplateId=" + id, {
      method:'POST'
  })
}
